import { createApp } from "vue";
import "./styles/global.less"; // 需全局样式
import "./styles/variable.less"; // 变量
import App from "./App.vue";
// 组件库
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";
// import * as Icons from "@ant-design/icons-vue";
import "@/assets/icons/iconfont.css"; // 图标库
import "@/assets/icons/iconfont.js"; // 图标库js
// 本地SVG图标需引入
import "virtual:svg-icons-register";
import setupPlugins from "@/plugins";
import "animate.css";
// mock数据
import "./mock/index";
const app = createApp(App);
app.use(Antd);

// // 全局注册所有图标组件
// for (const [key, component] of Object.entries(Icons)) {
//   app.component(key, component);
// }
// 注册插件
app.use(setupPlugins);
app.mount("#app");
